<?php
include("connection/connection.php");
if(isset($_POST['submit']))
{
$source=$_POST['source'];
$sourceId=$_POST['sourceId'];
$yeildMin=$_POST['yeildMin'];
$yeildMax=$_POST['yeildMax'];
$waterMin=$_POST['waterMin'];
$waterMax=$_POST['waterMax'];
$Location=$_POST['Location'];
$Longitude=$_POST['Longitude'];
$Latitude=$_POST['Latitude'];
$source_status=$_POST['source_status'];

$pH=$_POST['pH'];
$TDS=$_POST['TDS'];
$cl=$_POST['cl'];
$F=$_POST['F'];
$no3=$_POST['no3'];

$qr="update tbl_dtls_q1_sws set source='$source',location='$Location' ,longitude='$Longitude',latitude='$Latitude',yield_min='$yeildMin',yield_max='$yeildMax',water_table_min='$waterMin',water_table_max='$waterMax',current_status='$source_status' ,pH='$pH',TDS='$TDS',Cl='$cl',F='$F',no3='$no3' where id='$sourceId'";
$res=mysql_query($qr);
if($res)
{
header("location:q1_rwss_edit.php");
}
}		
?>